/**
 * 
 */
package com.uuticketweb.ticket.manager.bean;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * @author stephen
 *
 */
public class PolicyUpload {
	public static final String TABLE_NAME = "policy_upload";
	public static final String COLUMN_ID = "ID";
	public static final String COLUMN_POLICY_NO = "POLICY_NO";
	public static final String COLUMN_DATE = "DATE";
	public static final String COLUMN_FILE_PATH = "FILE_PATH";
	public static final String COLUMN_FILE_NAME = "FILE_NAME";
	public static final String COLUMN_PROCESS_FLAG = "PROCESS_FLAG";

	private int id;
	private String policyNo;
	private String date;
	private String filePath;
	private String fileName;
	private String processFlag;

	public PolicyUpload() {
	}

	public PolicyUpload(ResultSet rs) throws SQLException {
		this.id = rs.getInt(COLUMN_ID);
		this.policyNo = rs.getString(COLUMN_POLICY_NO);
		this.date = rs.getString(COLUMN_DATE);
		this.filePath = rs.getString(COLUMN_FILE_PATH);
		this.fileName = rs.getString(COLUMN_FILE_NAME);
		this.processFlag = rs.getString(COLUMN_PROCESS_FLAG);
	}

	/**
	 * @return the date
	 */
	public String getDate() {
		return date;
	}

	/**
	 * @param date the date to set
	 */
	public void setDate(String date) {
		this.date = date;
	}

	/**
	 * @return the fileName
	 */
	public String getFileName() {
		return fileName;
	}

	/**
	 * @param fileName the fileName to set
	 */
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	/**
	 * @return the filePath
	 */
	public String getFilePath() {
		return filePath;
	}

	/**
	 * @param filePath the filePath to set
	 */
	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}

	/**
	 * @return the policyNo
	 */
	public String getPolicyNo() {
		return policyNo;
	}

	/**
	 * @param policyNo the policyNo to set
	 */
	public void setPolicyNo(String policyNo) {
		this.policyNo = policyNo;
	}

	/**
	 * @return the processFlag
	 */
	public String getProcessFlag() {
		return processFlag;
	}

	/**
	 * @param processFlag the processFlag to set
	 */
	public void setProcessFlag(String processFlag) {
		this.processFlag = processFlag;
	}

}
